home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Diamond Collection
/
The Diamond Collection (Software Vault)(Digital Impact).ISO
/
cdr28
/
par300.zip
/
EXAMPL12.STX
< prev
next >
Wrap
Text File
|
1995-04-05
|
2KB
|
25 lines
;C
┌─────────────────────────────────────────────────────────────────────────────┐
│ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ EXAMPLE #12 ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ │
└─────────────────────────────────────────────────────────────────────────────┘
┌─────────────────────────────────────────────────────────────────────────────┐
│ │
│ THE INPUT FILE: A list of people who owe you money for work done on │
│ their car. The data is not arranged in columns, │
│ though; each field is separated by a slash ("/") │
│ character -- this is an example of "free-form data". │
│ │
│ WHAT WE WANT: We want to extract the address, phone number and the │
│ amount owed. We omit the description of the work done. │
│ │
│ HOW WE DO IT: We use the PARSE command to extract the fields, and │
│ use the APPEND command to group some of the data │
│ together. We then send the information to the output │
│ file (using OUTEND), and place a separator line between │
│ each person's information, to make the listing easier │
│ to read. │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
;P